using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace KPIS.GERP.Models.BGM
{
	[Table("bgm_mas_strategy_type"), DataContract]
    public class MasStrategyType
    {
        public MasStrategyType()
        {
            //this.MasStrategyMappings = new HashSet<MasStrategyMapping>();
            //this.StrategyDataLists = new HashSet<StrategyDataList>();
        }

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "BgmStratTypeId", ResourceType = typeof(Resources.MasStrategyTypeResource))]
		[Column("bgm_strat_type_seq", TypeName="int")]
        public int BgmStratTypeId { get; set; }

		[DataMember, Display(Name = "BgmStratTypeCode", ResourceType = typeof(Resources.MasStrategyTypeResource))]
		[Column("bgm_strat_type_code", TypeName="ntext")]
        public string BgmStratTypeCode { get; set; }

		[DataMember, Display(Name = "BgmStratTypeName", ResourceType = typeof(Resources.MasStrategyTypeResource))]
		[Column("bgm_strat_type_name", TypeName="ntext")]
        public string BgmStratTypeName { get; set; }

		[DataMember, Display(Name = "BgmStratTypeDescr", ResourceType = typeof(Resources.MasStrategyTypeResource))]
		[Column("bgm_strat_type_descr", TypeName="ntext")]
        public string BgmStratTypeDescr { get; set; }

		[DataMember, Display(Name = "IsRoot", ResourceType = typeof(Resources.MasStrategyTypeResource))]
		[Column("is_root", TypeName="int")]
        public Nullable<int> IsRoot { get; set; }

        //[DataMember]
        //public virtual ICollection<MasStrategyMapping> MasStrategyMappings { get; set; }

        //[DataMember]
        //public virtual ICollection<StrategyDataList> StrategyDataLists { get; set; }



        #region RecordStatus

        [DataMember, Display(Name = "RecordStatus", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
		[Column("record_status", TypeName="ntext")]
        public string RecordStatus { get; set; }

        [DataMember, Display(Name = "CreatedBy", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
		[Column("created_by", TypeName="int")]
        public Nullable<int> CreatedBy { get; set; }

        [DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
		[Column("created_when", TypeName="datetime2")]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

        [DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
		[Column("updated_by", TypeName="int")]
        public Nullable<int> UpdatedBy { get; set; }

        [DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
		[Column("updated_when", TypeName="datetime2")]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        #endregion

    }
}